package com.ldd.malphite.mapper;

import com.ldd.malphite.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface BookMapper {

    List<Book> selectAll();
    void insert(Book book);
    void insertMany(List<Book> books);
    void updateByName(String name,String oldName);
    List<Book> selectByIf(Book book);
    List<Book> selectChoose(Book book);
    List<Book> selectWhere(Book book);
    List<Book> selectIn(List<Integer> list);
    Map<String,String> selectByGroup();
}
